package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 点赞对象 t_likes
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
public class TLikes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 点赞id */
    private Long likesId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 笔记id或评论id 判断需要看类型字段 */
    @Excel(name = "笔记id或评论id 判断需要看类型字段")
    private Long noteCommentId;

    /** 评论点赞1 笔记点赞0 */
    @Excel(name = "评论点赞1 笔记点赞0")
    private Long likesType;

    /** 点赞时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "点赞时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date likeTime;

    public void setLikesId(Long likesId) 
    {
        this.likesId = likesId;
    }

    public Long getLikesId() 
    {
        return likesId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setNoteCommentId(Long noteCommentId) 
    {
        this.noteCommentId = noteCommentId;
    }

    public Long getNoteCommentId() 
    {
        return noteCommentId;
    }

    public void setLikesType(Long likesType) 
    {
        this.likesType = likesType;
    }

    public Long getLikesType() 
    {
        return likesType;
    }

    public void setLikeTime(Date likeTime) 
    {
        this.likeTime = likeTime;
    }

    public Date getLikeTime() 
    {
        return likeTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("likesId", getLikesId())
            .append("userId", getUserId())
            .append("noteCommentId", getNoteCommentId())
            .append("likesType", getLikesType())
            .append("likeTime", getLikeTime())
            .toString();
    }
}
